#ifndef NSSHARE_SYS_STOP_WATCH_H_
#define NSSHARE_SYS_STOP_WATCH_H_

#include "../base/base_object.h"

namespace nsshare
{
namespace  sys
{

class StopWatch : public base::BaseObject
{
public:
    StopWatch();

    void Start();
    void Stop();
    uint32_t ElapsedTime() const;
private:
    uint32_t start_tick_;
    uint32_t stop_tick_;
    bool stoped_;
};

}
}

#endif